package com.ruoyi.ring.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 睡眠对象 az_ring_sleep
 * 
 * @author liuwp
 * @date 2025-08-18
 */
@Data
public class RingSleep extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 设备SN */
    @Excel(name = "设备SN")
    private String deviceSn;

    /** 计算日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计算日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dailyValue;

    /** 睡眠时间 */
    @Excel(name = "睡眠时间")
    private Integer totalTime;

    /** 睡眠得分 */
    @Excel(name = "睡眠得分")
    private Integer sleepScore;

    /** 深睡眠时间 */
    @Excel(name = "深睡眠时间")
    private Integer deepTime;

    /** 浅睡眠时间 */
    @Excel(name = "浅睡眠时间")
    private Integer lightTime;

    /** 清醒时间 */
    @Excel(name = "清醒时间")
    private Integer awakeTime;

    /** 快速眼动 */
    @Excel(name = "快速眼动")
    private Integer remTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceSn", getDeviceSn())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("dailyValue", getDailyValue())
            .append("totalTime", getTotalTime())
            .append("sleepScore", getSleepScore())
            .append("deepTime", getDeepTime())
            .append("lightTime", getLightTime())
            .append("awakeTime", getAwakeTime())
            .append("remTime", getRemTime())
            .toString();
    }
}
